package com.example.demo.entity.requestJson;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author : 杨丽辉
 * @date : 2021/3/4 17:16
 * @description:
 */
@ApiModel("发布新章节内容请求Json类")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AInsertChapterReq {
    /**
     * 章节名称
     * isnull 0
     */        @ApiModelProperty(value="章节名称", position=2)
    private String chapterName;
    /**
     * 书籍id
     * isnull 0
     */        @ApiModelProperty(value="书籍id",position=3)
    private String bookId;
    /**
     * 章节id
     * isnull 0
     */        @ApiModelProperty(value="章节id",position=3)
    private String chapterId;
    /**
     * 章节内容
     * isnull 0
     */        @ApiModelProperty(value="章节内容",position=4)
    private String chapterContent;

    /**
     * 作者有话说
     * isnull 0
     */        @ApiModelProperty(value="作者有话说",position=8)
    private String authorWords;
    /**
     * 分卷（0：正文；1：番外）
     * isnull 0
     */        @ApiModelProperty(value="分卷（0：正文；1：番外）",position=9)
    private Integer segment;

    /**
     * 章节内容字数
     * isnull 0
     */        @ApiModelProperty(value="章节内容字数",position=11)
    private Integer chapterContentCount;
    /**
     * 是否免费（0：免费；1：不免费）
     * isnull 0
     */        @ApiModelProperty(value="是否免费（0：免费；1：不免费）",position=13)
    private Integer isFree;

    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public String getChapterContent() {
        return chapterContent;
    }

    public void setChapterContent(String chapterContent) {
        this.chapterContent = chapterContent;
    }

    public String getAuthorWords() {
        return authorWords;
    }

    public void setAuthorWords(String authorWords) {
        this.authorWords = authorWords;
    }

    public Integer getSegment() {
        return segment;
    }

    public void setSegment(Integer segment) {
        this.segment = segment;
    }

    public String getChapterId() {
        return chapterId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    public Integer getChapterContentCount() {
        return chapterContentCount;
    }

    public void setChapterContentCount(Integer chapterContentCount) {
        this.chapterContentCount = chapterContentCount;
    }

    public Integer getIsFree() {
        return isFree;
    }

    public void setIsFree(Integer isFree) {
        this.isFree = isFree;
    }

    @Override
    public String toString() {
        return "AInsertChapterReq{" +
                "chapterName='" + chapterName + '\'' +
                ", bookId='" + bookId + '\'' +
                ", chapterId='" + chapterId + '\'' +
                ", chapterContent='" + chapterContent + '\'' +
                ", authorWords='" + authorWords + '\'' +
                ", segment=" + segment +
                ", chapterContentCount=" + chapterContentCount +
                ", isFree=" + isFree +
                '}';
    }
}
